<?php
/* @var $this SiteController */

if (Yii::app()->session["user_id"] == null) {
    $this->redirect(array("site/index"));
}
$this->pageTitle = Yii::app()->name;
?>
<div class="panel">
    <div class="panel_header">
        Welcome 
        <?php echo $_SESSION["user_name"]; ?> 
        <?php echo $_SESSION["user_surname"]; ?>
    </div>

    <?php
    $this->widget('zii.widgets.ClistView', array(
        'dataProvider' => $user,
        'itemView' => '_Profile'
    ));
    ?>

</div>
